/* Ejercicio 5.19
   ejer5_19.c */
#include <stdio.h>

/* Prototypes */
void printSquare( int side );

/* function main begins program execution */
int main( void )
{
    int s;

    printf( "Enter a number: " );
    scanf( "%d", &s );

    printSquare( s );
	return 0;
} /* end function main */

/* Prints a square of 'side' side */
void printSquare( int side )
{
    int i, j;

    for ( i = 1; i <= side; i++ ) {

        for ( j = 1; j <= side; j++ ) {
            printf( "*" );
        }

        printf( "\n" );
    }
} /* end function printSquare*/
